package com.yedean.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yedean.shop.entity.StoreManager;
import com.yedean.utils.Result;

import java.util.List;

/**
 * @author yedean
 * @date 2022/9/20
 */
public interface IStoreManagerService extends IService<StoreManager> {
    /**
     * 店长列表分页查询
     */
    IPage<StoreManager> queryPageByCriteria(int pageNo, int pageSize, String criteria);

    /**
     * 门店管理员添加逻辑
     */
    boolean addStoreManager(String name, String phone, List<String> storeIds);

    //修改门店管理员
    boolean updateStoreManager(String storeManagerId,String name,String phone,List<String> storeIds);


    //店长逻辑删除
    boolean deleteStoreManager(String storeManagerId);

    //店长暂停
    boolean pauseStoreManager(String storeManagerId);

    //登录
    Result login(String shopId, String phone, String loginPass);
}
